import request from '@/utils/request'

// 查询场站列表
export function listChangzhan(query) {
  return request({
    url: '/ruoyi-yuce/changzhan/list',
    method: 'get',
    params: query
  })
}

// 查询场站详细
export function getChangzhan(id) {
  return request({
    url: '/ruoyi-yuce/changzhan/' + id,
    method: 'get'
  })
}

// 新增场站
export function addChangzhan(data) {
  return request({
    url: '/ruoyi-yuce/changzhan',
    method: 'post',
    data: data
  })
}

// 修改场站
export function updateChangzhan(data) {
  return request({
    url: '/ruoyi-yuce/changzhan',
    method: 'put',
    data: data
  })
}

// 删除场站
export function delChangzhan(id) {
  return request({
    url: '/ruoyi-yuce/changzhan/' + id,
    method: 'delete'
  })
}
